package com.example.filesystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author bbyh
 * @since 2025-04-29
 */
@Getter
@Setter
public class Log implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 记录id
     */
    @TableId(value = "log_id", type = IdType.AUTO)
    private Integer logId;

    /**
     * 限流ip
     */
    private String ip;

    /**
     * 限流用户名
     */
    private String username;

    /**
     * 限流uri
     */
    private String path;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;
}
